package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.SysJobInfo;
import com.exmaple.dto.RpcRequest;

import java.util.Date;
import java.util.List;

public interface SysJobInfoService extends IService<SysJobInfo> {

    public RpcRequest buildRequest(Integer jobId);

    public List<SysJobInfo> findListByTime(Long nextTime);

    public void refreshRunTime(Integer jobId, Long runTime) throws Exception;

    public Date generateNextValidTime(SysJobInfo sysJobInfo, Date fromTime) throws Exception;
}
